From: kfraser@localhost.localdomain Date: Fri, 2 Feb 2007 15:54:42 +0000 (+0000) Subject: Fix cross-compile: ia64 build on x86. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15358^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=b5c66d349302228614c1082d830c83e8aec7794f;p=xen.git Fix cross-compile: ia64 build on x86. Signed-off-by: Isaku Yamahata --- diff --git a/xen/include/public/foreign/Makefile b/xen/include/public/foreign/Makefile index 7f91dd87b9..7bf028e72a 100644 --- a/xen/include/public/foreign/Makefile +++ b/xen/include/public/foreign/Makefile @@ -13,9 +13,16 @@ clean: rm -f checker checker.c $(XEN_TARGET_ARCH).size rm -f *.pyc *.o *~ +ifeq ($(CROSS_COMPILE),) check-headers: checker ./checker > $(XEN_TARGET_ARCH).size diff -u reference.size $(XEN_TARGET_ARCH).size +checker: checker.c $(headers) + $(HOSTCC) $(CFLAGS) -o $@ $< +else +check-headers: + @echo "cross build: skipping check" +endif x86_32.h: ../arch-x86/xen-x86_32.h ../arch-x86/xen.h ../xen.h $(scripts) python mkheader.py $* $@ $(filter %.h,$^) @@ -26,8 +33,5 @@ x86_64.h: ../arch-x86/xen-x86_64.h ../arch-x86/xen.h ../xen.h $(scripts) ia64.h: ../arch-ia64.h ../xen.h $(scripts) python mkheader.py $* $@ $(filter %.h,$^) -checker: checker.c $(headers) - $(HOSTCC) $(CFLAGS) -o $@ $< - checker.c: $(scripts) python mkchecker.py $(XEN_TARGET_ARCH) $@ $(architectures)